import request from '@/utils/request'

// 新增
export function add(data) {
  return request({
    url: `/system/resource/field`,
    method: 'post',
    data
  })
}

// 修改
export function edit(data) {
  return request({
    url: `/system/resource/field`,
    method: 'put',
    data
  })
}

// 删除
export function remove(data) {
  return request({
    url: `/system/resource/field`,
    method: 'delete',
    data
  })
}

// page
export function page(data) {
  return request({
    url: `/system/resource/field/page`,
    method: 'post',
    data
  })
}

// getType
export function getType(data) {
  return request({
    url: `/system/resource/field/getType`,
    method: 'post',
    data
  })
}

// type
export function type(data) {
  return request({
    url: `/system/resource/field/type`,
    method: 'post',
    data
  })
}

// dataScopePage
export function dataScopePage(data) {
  return request({
    url: `/system/resource/field/dataScope/page`,
    method: 'post',
    data
  })
}

// dataScopeSave
export function dataScopeSave(data) {
  return request({
    url: `/system/resource/field/dataScope`,
    method: 'post',
    data
  })
}

// dataScopeUpdate
export function dataScopeUpdate(data) {
  return request({
    url: `/system/resource/field/dataScope`,
    method: 'put',
    data
  })
}

// dataScopeRemove
export function dataScopeRemove(data) {
  return request({
    url: `/system/resource/field/dataScope`,
    method: 'delete',
    data
  })
}
